package com.example.mall.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.example.mall.util.CodeGenerateUtils;

import java.io.Serializable;

/**
 * <p>
 * 热门商品推荐表
 * </p>
 *
 * @author whale
 * @since 2025-05-06
 */
@TableName("tb_hot_product_recommendations")
public class HotProductRecommendations extends Model<HotProductRecommendations> {

    private static final long serialVersionUID = 1L;

    /**
     * 推荐唯一标识
     */
    @TableId("recommend_id")
    private Long recommendId;
    /**
     * 商品ID
     */
    @TableField("product_id")
    private Long productId;
    /**
     * 推荐优先级（数字越大优先级越高）
     */
    private Integer priority;
    /**
     * 状态（0-有效，1-无效）
     */
    private Integer status;
    /**
     * 创建时间
     */
    @TableField("create_date")
    private Date createDate;
    /**
     * 更新时间
     */
    @TableField("update_date")
    private Date updateDate;

    public HotProductRecommendations() {
        this.recommendId = Long.valueOf(CodeGenerateUtils.generateUniqueId());
    }

    public Long getRecommendId() {
        return recommendId;
    }

    public void setRecommendId(Long recommendId) {
        this.recommendId = recommendId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Integer getPriority() {
        return priority;
    }

    public void setPriority(Integer priority) {
        this.priority = priority;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }


    @Override
    public String toString() {
        return "HotProductRecommendations{" +
        ", recommendId=" + recommendId +
        ", productId=" + productId +
        ", priority=" + priority +
        ", status=" + status +
        ", createDate=" + createDate +
        ", updateDate=" + updateDate +
        "}";
    }
}
